package com.hbnu.dao;

import com.hbnu.pojo.DormBuild;
import com.hbnu.pojo.User;

import java.util.List;

/**
 * @author chendikai
 * @date 2024-11-06 上午 10:37
 */
public interface UserDao {
    User findUserByStuCodeAndPassword(String stuCode, String password);

    List<User> findManager(String searchType, String keyword);

    List<DormBuild> findDormBuildsByUserId(Integer userId);

    List<User> findStudent(String string);
    Integer findTotalNum(String string);

    User findByStuCode(String stuCode);

    void updateStudent(User studentUpdate);

    void saveStudent(User user);

    User findByUserIdAndManager(String string);

    User findById(int id);
}
